/***API***/
import * as baseAPI from "@/api";
const request = baseAPI.request;

const API = {
  getLocations: obj => {
    let requestData = {
      method: "post",
      url: "YWCK/ywCKGetLocations2",
      data: obj
    };
    return request(requestData);
  },

  getStorage: obj => {
    let requestData = {
      method: "post",
      url: "YWCK/ywCKGetStorages2",
      data: obj
    };
    return request(requestData);
  },

  getInOrderDetailsList: obj => {
    let requestData = {
      method: "post",
      url: "YWCK/ywCKGetInStorageOrederDetail2",
      data: obj
    };
    return request(requestData);
  },

  getOutOrderDetailsList: obj => {
    let requestData = {
      method: "post",
      url: "YWCK/ywCKGetOutStorageOrederDetail2",
      data: obj
    };
    return request(requestData);
  }
};

export default API;
